<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>全文检索</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <jsp:include page="/menus.jsp"></jsp:include> <br>
  <script type="text/javascript">
  $(document).ready(function(){
	  var index=0;
	  <c:forEach items="${tableProjects }" var="tableProject" >
	  index++;
	  </c:forEach>
	  if(index!=0){
		  $("#home_w").hide();
	  }
  });
  
  </script>
   <div class="container">
  		<div>
  		<h4><i class="glyphicon glyphicon-list-alt"></i><strong > <a href="${pageContext.request.contextPath }/admin/project/proList">${sessionScope.user.userName }</a>&nbsp;</strong></h4>
  		</div>
  		<ul id="myTab" class="nav nav-tabs">
			<li class="active">
				<a href="javascript:void(0)" data-toggle="tab">
					项目列表
				</a>
					
		</ul>
		<div id="myTabContent" class="tab-content">
			<div class="tab-pane fade in active" id="home">
			<!-- 线束项目信息和项目的版本，以及项目提交记录 -->
				 <div class="alert alert-warning" role="alert" id="home_w">
			        暂时还没有任何提交数据
			        <button type="button" class="close" aria-hidden="true" onclick="qxon('home_w')">&times;</button>
			      </div>
			      
			      <div id="pro_txt">
			      <c:forEach items="${tableProjects }" var="tableProject" >
			      <hr><div class='media'>
					<a class='media-left' href='javascript:void(0)'>
					    <i class='glyphicon glyphicon-list-alt'></i>
					    </a>
					    <div class='media-body'>
					        <h4 class='media-heading'><a href='${pageContext.request.contextPath }/admin/project/projectDetail/${tableProject.proId}'>${tableProject.proTitle }</a><span class='pull-right'><small>时间:${tableProject.createDate }</small></span></h4>
					       		 ${tableProject.proIntro }
					    </div>
					</div>
			      </c:forEach>
			      
			      </div>
			      
			</div>
			</div>
	  	<div align="right">
			<jsp:include page="/MyFooter.jsp"></jsp:include>
		</div>
    </div><!--/.container-->
  </body>
</html>
